Tassilo Horn [Fri, 20 Dec 2013 15:18:50 +0000 (16:18 +0100)]
Document buffer name uniquification changes.
* doc/emacs/buffers.texi: Document buffer name uniquification changes.
Tassilo Horn [Fri, 20 Dec 2013 14:56:23 +0000 (15:56 +0100)]
Document that `electric-indent-mode' is enabled by default.
* doc/emacs/indent.texi: Document that `electric-indent-mode' is enabled by
default.
Tassilo Horn [Fri, 20 Dec 2013 14:51:53 +0000 (15:51 +0100)]
Document `blink-cursor-blinks'.
* doc/emacs/display.texi (Cursor Display): Document `blink-cursor-blinks'.
Tassilo Horn [Fri, 20 Dec 2013 14:33:52 +0000 (15:33 +0100)]
Mark write-region-inhibit-fsync changes as documented.
Tassilo Horn [Fri, 20 Dec 2013 14:28:01 +0000 (15:28 +0100)]
Document *Messages* buffer changes.
* doc/emacs/buffers.texi: Update list-buffers "screeshop" to show Messages
as major-mode.
* doc/lispref/display.texi: Document `messages-buffer'.
Tassilo Horn [Fri, 20 Dec 2013 14:18:21 +0000 (15:18 +0100)]
Document `initial-buffer-choice' changes.
* doc/emacs/entering.texi: Document `initial-buffer-choice' changes.
* doc/emacs/misc.texi (arguments): Document `initial-buffer-choice' changes.
* doc/lispref/os.texi: Document `initial-buffer-choice' changes.
Tassilo Horn [Fri, 20 Dec 2013 14:00:21 +0000 (15:00 +0100)]
Mark set-mark-default-inactive item as ---
Tassilo Horn [Fri, 20 Dec 2013 13:55:44 +0000 (14:55 +0100)]
Document prefix key description in terms of ?
* doc/emacs/help.texi: Document that `?' now also shows subcommands of
prefix keys.
Rüdiger Sonderfeld [Fri, 20 Dec 2013 12:31:20 +0000 (13:31 +0100)]
NEWS: Octave mode changes reflected in new manual.
See (info "(octave-mode)Top").
Martin Rudalics [Fri, 20 Dec 2013 10:48:36 +0000 (11:48 +0100)]
Some more fixes for pixelwise resizing.
Remove scroll_bar_actual_width from frames.
* frame.h (struct frame): Remove scroll_bar_actual_width slot.
* frame.c (Fscroll_bar_width): Return scroll bar area width.
(x_figure_window_size):
* nsterm.m (x_set_window_size):
* widget.c (set_frame_size):
* w32term.c (x_set_window_size):
* xterm.c (x_set_window_size, x_set_window_size_1): Don't set
scroll_bar_actual_width.
Convert scroll_bar members to integers on Windows.
* w32term.h (struct scroll_bar): Convert top, left, width,
height, start, end and dragging to integers.
* w32fns.c (w32_createscrollbar): Remove XINT conversions for
scroll_bar members.
* w32term.c (w32_set_scroll_bar_thumb)
(w32_scroll_bar_handle_click): Remove XINT conversions for
scroll_bar members. Treat bar->dragging as integer.
(x_scroll_bar_create): Call ALLOCATE_PSEUDOVECTOR with "top" as
first element. Remove XINT conversions for scroll_bar members.
(w32_set_vertical_scroll_bar, x_scroll_bar_report_motion):
Remove XINT conversions for scroll_bar members.
Fix assignment for new window total sizes.
* window.c (Fwindow_resize_apply_total): Assign values for
minibuffer window.
* window.el (window--pixel-to-size): Remove function.
(window--pixel-to-total-1, window--pixel-to-total): Fix
calculation of new total sizes.
Leo Liu [Fri, 20 Dec 2013 10:12:17 +0000 (18:12 +0800)]
* url/url.el (url-retrieve-synchronously): Add optional arg SILENT and
INHIBIT-COOKIES.
Chong Yidong [Fri, 20 Dec 2013 07:12:04 +0000 (15:12 +0800)]
Add/fix docs for add-face-text-property
* doc/lispref/text.texi (Changing Properties): Improve documentation for
add-face-text-property.
(Special Properties): Mention add-face-text-property.
* src/textprop.c (Fadd_face_text_property): Doc fix. Rename `appendp'
argument to `append'.
Vitalie Spinu [Fri, 20 Dec 2013 06:25:19 +0000 (14:25 +0800)]
comint.el (comint-output-filter): Fix rear-nonsticky property placement.
Fixes: debbugs:16010
Chong Yidong [Fri, 20 Dec 2013 06:11:00 +0000 (14:11 +0800)]
* faces.el (read-color): Minor fix for completion function.
Katsumi Yamaoka [Fri, 20 Dec 2013 05:53:04 +0000 (05:53 +0000)]
lisp/gnus/gnus-spec.el (gnus-tmp-article-number): Remove duplicate defvar
Dmitry Gutov [Fri, 20 Dec 2013 05:20:33 +0000 (07:20 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-align-to-stmt-keywords): New
option.
(ruby-smie--indent-to-stmt-p): Use it.
(ruby-smie-rules): Revert the logic in the handling of `when'.
Expand the `begin' clause to handle `ruby-align-to-stmt-keywords'.
(ruby-deep-arglist, ruby-deep-indent-paren)
(ruby-deep-indent-paren-style): Update docstrings to note that the
vars don't have any effect with SMIE.
* test/automated/ruby-mode-tests.el: Add tests for
`ruby-align-to-stmt-keywords'.
* test/indent/ruby.rb: Update examples to reflect the lack of change in
default indentation of `begin' blocks.
Fixes: debbugs:16182
Jay Belanger [Fri, 20 Dec 2013 04:53:24 +0000 (22:53 -0600)]
lisp/calc/calc.el (calc-enter, calc-pop): Use the variable
`calc-context-sensitive-enter'.
doc/misc/calc.texi (Stack Manipulation Commands): Mention using the variable
`calc-context-sensitive-enter' for `calc-enter' and `calc-pop'.
Lars Magne Ingebrigtsen [Fri, 20 Dec 2013 04:29:08 +0000 (05:29 +0100)]
* net/shr.el (shr-insert): Protect against infloops in degenerate tables.
Rüdiger Sonderfeld [Fri, 20 Dec 2013 01:50:46 +0000 (02:50 +0100)]
octave-mode: Link to manual.
* lisp/progmodes/octave.el (octave): Add link to manual and octave
homepage.
(octave-mode-menu): Link to octave-mode manual.
Leo Liu [Fri, 20 Dec 2013 00:38:02 +0000 (08:38 +0800)]
* skeleton.el (skeleton-pair-insert-maybe): Disable newline
insertion using skeleton-end-newline.
Fixes: debbugs:16138
Juri Linkov [Fri, 20 Dec 2013 00:07:08 +0000 (02:07 +0200)]
* lisp/replace.el (occur-engine): Use `add-face-text-property'
to add the face property to matches and titles.
* lisp/hi-lock.el (hi-green): Use lighter color "light green" closer to
the palette of other hi-lock colors.
(hi-lock-set-pattern): Prepend hi-lock face to the existing face.
Fixes: debbugs:14645
Juri Linkov [Thu, 19 Dec 2013 22:12:12 +0000 (00:12 +0200)]
* lisp/isearch.el (isearch-mode-map): Bind `M-s e' to `isearch-edit-string'.
Put :advertised-binding on `M-s c', `M-s r', `M-s e'. (Bug#16035)
(minibuffer-history-symbol): Move variable declaration closer to
its usage.
* lisp/isearchb.el (isearchb): Add `event-basic-type' on `last-command-event'.
(Bug#14785)
* lisp/gnus/gnus.el (gnus-suppress-keymap):
* lisp/gnus/gnus-art.el (gnus-article-mode-map):
* lisp/gnus/gnus-group.el (gnus-group-mode-map):
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map, gnus-summary-backend-map):
Remove [backspace] key binding because it shadows DEL (bug#16035).
* lisp/gnus/mm-decode.el (mm-viewer-completion-map): Remove duplicate definition.
Juri Linkov [Thu, 19 Dec 2013 21:10:41 +0000 (23:10 +0200)]
* lisp/vc/log-edit.el (log-edit-insert-filenames-without-changelog): New function.
(log-edit-hook): Add it to :options.
Fixes: debbugs:16170
Juri Linkov [Thu, 19 Dec 2013 21:02:46 +0000 (23:02 +0200)]
* lisp/simple.el (eval-expression-print-format): Don't check for
command names and the last command. Always display additional
formats of the integer result in the echo area, and insert them
to the current buffer only with a zero prefix arg.
Display character when char-displayable-p is non-nil.
(eval-expression): With a zero prefix arg, set `print-length' and
`print-level' to nil, and insert the integer values from
`eval-expression-print-format' at the end. Doc fix.
* lisp/emacs-lisp/lisp-mode.el (eval-print-last-sexp): Add arg
`eval-last-sexp-arg-internal'. Doc fix.
(eval-last-sexp-1): Pass arg `eval-last-sexp-arg-internal' to
`eval-last-sexp-print-value'. Doc fix.
(eval-last-sexp-print-value): Add arg `eval-last-sexp-arg-internal'.
Set `print-length' and `print-level' to nil when arg is zero.
(eval-last-sexp): Doc fix.
(eval-defun-2): Print the integer values from
`eval-expression-print-format' at the end.
* lisp/emacs-lisp/edebug.el (edebug-eval-defun): Print the integer
values from `eval-expression-print-format' at the end.
* lisp/ielm.el (ielm-eval-input): Print the integer
values from `eval-expression-print-format' at the end.
Fixes: debbugs:12985
Eli Zaretskii [Thu, 19 Dec 2013 19:25:13 +0000 (21:25 +0200)]
Fix last commit for TTYs.
Eli Zaretskii [Thu, 19 Dec 2013 19:06:53 +0000 (21:06 +0200)]
Fix bug #16192 with highlight of display margins when region is active
src/xdisp.c (extend_face_to_end_of_line): Use default face, not the
current text face, for extending the face of the display margins.
Rüdiger Sonderfeld [Thu, 19 Dec 2013 18:00:05 +0000 (19:00 +0100)]
Update .gitignore.
It should probably be kept better in sync with .bzrignore.
* .gitignore: Ignore refcard temporaries and info/*.info files.
Eli Zaretskii [Thu, 19 Dec 2013 17:51:18 +0000 (19:51 +0200)]
Fix bug #16190 with documentation of capitalize-word.
src/casefiddle.c (Fupcase_word, Fdowncase_word, Fcapitalize_word):
Doc fix.
Ted Zlatanov [Thu, 19 Dec 2013 16:25:25 +0000 (11:25 -0500)]
eww: Revert 2013-12-11T19:01:44Z!tzz@lifelogs.com UI wrappers (eww-exit, eww-close)
* net/eww.el (eww-exit, eww-close, eww-mode-map): Revert change of
2013-12-11T19:01:44Z!tzz@lifelogs.com.
Stefan Monnier [Thu, 19 Dec 2013 14:00:55 +0000 (09:00 -0500)]
* lisp/hl-line.el (hl-line-make-overlay): New fun. Set priority.
(hl-line-highlight, global-hl-line-highlight): Use it.
(hl-line-overlay): Use defvar-local.
Fixes: debbugs:16192
Jan Djärv [Thu, 19 Dec 2013 10:25:48 +0000 (11:25 +0100)]
Make NS port use the normal dnd functions.
* lisp/term/ns-win.el: Require dnd.
(global-map): Remove drag items.
(ns-insert-text, ns-set-foreground-at-mouse)
(ns-set-background-at-mouse): Remove
(ns-drag-n-drop, ns-drag-n-drop-other-frame)
(ns-drag-n-drop-as-text, ns-drag-n-drop-as-text-other-frame): New
functions.
* src/nsterm.h (KEY_NS_DRAG_FILE, KEY_NS_DRAG_COLOR, KEY_NS_DRAG_TEXT):
Remove.
* src/nsterm.m (Qfile, Qurl): New.
(EV_MODIFIERS2): New macro.
(EV_MODIFIERS): Use EV_MODIFIERS2.
(ns_term_init): Remove font and color from DND, does not work on
newer OSX, and other ports don't have them.
(performDragOperation:): Handle modifiers used during drag.
Use DRAG_N_DROP_EVENT instead of NS specific events.
Remove global Lisp variables used to communicate with ns-win.el.
Remove font and color handling.
(syms_of_nsterm): Defsym Qfile and Qurl.
Fixes: debbugs:8051
Jan Djärv [Thu, 19 Dec 2013 08:40:11 +0000 (09:40 +0100)]
Redo size constraint for NS so frames can span screens.
* nsterm.h (ns_output): Remove dont_constrain.
* nsterm.m (NSTRACE_SIZE, NSTRACE_RECT): New macros.
(ns_constrain_all_frames, x_set_offset): Remove assignment to
dont_constrain.
(updateFrameSize:, windowWillResize:toSize:): Add trace.
(constrainFrameRect): Remove special case nr_screens == 1.
Don't constrain size to size of view.
Glenn Morris [Thu, 19 Dec 2013 08:14:37 +0000 (00:14 -0800)]
* lisp/emacs-lisp/ert.el (ert-select-tests): Fix string/symbol mixup.
Fixes: debbugs:16121
Jan Djärv [Thu, 19 Dec 2013 07:38:08 +0000 (08:38 +0100)]
Generate HORIZ_WHEEL_EVENT.
* nsterm.m (mouseDown:): Generate HORIZ_WHEEL_EVENT.
Dmitry Gutov [Thu, 19 Dec 2013 05:06:24 +0000 (07:06 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent middle-of-block
keywords to their parent.
Katsumi Yamaoka [Thu, 19 Dec 2013 04:48:52 +0000 (04:48 +0000)]
lisp/gnus/ChangeLog: Fix timestamp of last commit
Katsumi Yamaoka [Thu, 19 Dec 2013 04:41:35 +0000 (04:41 +0000)]
lisp/gnus/gnus-uu.el: Fix temporary files deletion bug
Dmitry Gutov [Thu, 19 Dec 2013 04:21:44 +0000 (06:21 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie--args-separator-p): Allow the
first arg to be a string (fixed dead code), or an operator symbol.
(ruby-smie--forward-token): Tokenize ` @ ' before strings and
operator symbols.
(ruby-smie-rules): Remove parent token check in the `.' clause, it
did nothing. Don't respond to `(:after ".")', it will be called
with :before anyway. Remove the ` @ ' rule, it didn't seem to
change anything. Only return indentation for binary operators
when they are hanging. De-dent opening paren when its parent is
`.', otherwise it looks bad when the dot is not at bol or eol.
Fixes: debbugs:16182
Juri Linkov [Thu, 19 Dec 2013 00:29:41 +0000 (02:29 +0200)]
query-replace backward
* lisp/replace.el (query-replace-read-args): Split a non-negative arg
and a negative arg into separate elements.
(query-replace, query-replace-regexp, replace-string)
(replace-regexp): Add arg `backward'. Doc fix.
(replace-match-maybe-edit): When new arg `backward' is non-nil,
move point to the beginning of the match.
(replace-search, replace-highlight): Use new arg `backward'
to set the value of `isearch-forward'.
(perform-replace): Add arg `backward' and use it to perform
replacement backward.
* lisp/isearch.el (isearch-query-replace): Use a negative prefix arg
to call `perform-replace' with a non-nil arg `backward'.
Fixes: debbugs:14979
Juri Linkov [Wed, 18 Dec 2013 23:51:45 +0000 (01:51 +0200)]
* lisp/vc/log-edit.el (log-edit-hook): Add `log-edit-insert-message-template'
to the default list. Move `log-edit-show-files' to the end.
Add more available functions to options.
(log-edit): Move default specific settings to
`log-edit-insert-message-template'. Don't move point.
(log-edit-insert-message-template): New function.
(log-edit-insert-changelog): Add `save-excursion' and don't move point.
Fixes: debbugs:16170
Juri Linkov [Wed, 18 Dec 2013 23:40:12 +0000 (01:40 +0200)]
* lisp/help-mode.el (help-mode-map): Bind "l" to help-go-back,
and "r" to help-go-forward for compatibity with Info.
Fixes: debbugs:16178
Paul Eggert [Wed, 18 Dec 2013 22:35:17 +0000 (14:35 -0800)]
Add comment to my previous lread.c change.
Jan Tatarik [Wed, 18 Dec 2013 22:11:40 +0000 (22:11 +0000)]
lisp/gnus/gnus-icalendar.el (gnus-icalendar-identities): Make changing the value of gnus-icalendar-additional-identities work without restart
Paul Eggert [Wed, 18 Dec 2013 20:36:50 +0000 (12:36 -0800)]
Minor fixes for recent openp changes.
* lisp.h (GCPRO7): New macro.
* lread.c (openp): Use bool for boolean; all callers changed.
Protect save_string from GC. Don't assume that file descriptors
are nonzero. Redo save_mtime comparison to avoid bogus GCC
warning about uninitialized variable.
Leo Liu [Wed, 18 Dec 2013 18:38:20 +0000 (02:38 +0800)]
* eshell/em-prompt.el (eshell-emit-prompt): Fix last change.
Fixes: debbugs:16186
Eli Zaretskii [Wed, 18 Dec 2013 16:21:17 +0000 (18:21 +0200)]
Avoid compiler warnings in w32fns.c:emacs_abort.
src/w32fns.c (emacs_abort): Use intptr_t as argument of
INT_BUFSIZE_BOUND, to avoid compiler warnings.
Eli Zaretskii [Wed, 18 Dec 2013 16:01:43 +0000 (18:01 +0200)]
Fix bug #16179 with ls-lisp emulation of the ls -s switch.
src/ls-lisp.el (ls-lisp-insert-directory): Don't modify %d and %f
formats for displaying file sizes when the -s switch is given.
Instead, compute a separate format for displaying the size in
blocks, which is displayed in addition to the "regular" size.
When -h is given in addition to -s, produce size in blocks in
human-readable form as well.
Chong Yidong [Wed, 18 Dec 2013 14:54:24 +0000 (22:54 +0800)]
* customize.texi (Custom Themes): Document custom-known-themes.
* custom.el (custom-available-themes): Doc fix.
Fixes: debbugs:15717
Tassilo Horn [Wed, 18 Dec 2013 11:52:49 +0000 (12:52 +0100)]
Add tilde before \ref{}s to tables.
* lisp/textmodes/reftex-vars.el (reftex-label-alist-builtin): Reference
tables with ~\ref{...} instead of only \ref{...}.
Chong Yidong [Wed, 18 Dec 2013 08:58:22 +0000 (16:58 +0800)]
* cus-edit.el (custom-magic-alist): Fix "themed" description.
Fixes: debbugs:14348
Chong Yidong [Wed, 18 Dec 2013 08:53:22 +0000 (16:53 +0800)]
Fix loading of themes when NO-ENABLE is t.
* lisp/custom.el (custom-push-theme): If custom--inhibit-theme-enable
is non-nil, do not create a new entry in the symbol's theme-value
or theme-face property; update theme-settings only.
Fixes: debbugs:14664
Chong Yidong [Wed, 18 Dec 2013 07:54:20 +0000 (15:54 +0800)]
* cus-theme.el (custom-new-theme-mode-map): Add bindings.
Fixes: debbugs:15674
Chong Yidong [Wed, 18 Dec 2013 05:31:11 +0000 (13:31 +0800)]
Minor fixes for Lispref's modes.texi
* modes.texi (Defining Minor Modes): Fix typo.
(Keymaps and Minor Modes): Fix binding convention.
Fixes: debbugs:11522 debbugs:14874
Chong Yidong [Wed, 18 Dec 2013 05:10:58 +0000 (13:10 +0800)]
* replace.el (occur-engine): Avoid infloop.
Fixes: debbugs:7593
Kazuhiro Ito [Wed, 18 Dec 2013 05:01:30 +0000 (13:01 +0800)]
make-mode.el (makefile-fill-paragraph): Fix infloop.
Fixes: debbugs:13914
Shigeru Fukaya [Wed, 18 Dec 2013 04:46:49 +0000 (12:46 +0800)]
apropos.el (apropos-words-to-regexp): Fix algorithm.
* apropos.el (apropos-words-to-regexp): Fix algorithm.
Fixes: debbugs:13946
Glenn Morris [Wed, 18 Dec 2013 04:19:08 +0000 (20:19 -0800)]
* src/lread.c (openp): Further fix for previous.
Glenn Morris [Wed, 18 Dec 2013 04:05:57 +0000 (20:05 -0800)]
* src/lread.c (openp): Fix previous change (don't leak file descriptors)
Glenn Morris [Wed, 18 Dec 2013 03:25:52 +0000 (19:25 -0800)]
ChangeLog tweak
Glenn Morris [Wed, 18 Dec 2013 03:21:48 +0000 (19:21 -0800)]
Add load-prefer-newer option, to load .el if newer than .elc
* src/lread.c (Fload): Pass load_prefer_newer to openp.
Don't bother checking mtime if openp already did it.
(openp): Add `newer' argument, to check all suffixes
and find the newest file.
(syms_of_lread) <load_prefer_newer>: New option.
* src/callproc.c (call_process):
* src/charset.c (load_charset_map_from_file):
* src/emacs.c (init_cmdargs):
* src/image.c (x_create_bitmap_from_file, x_find_image_file):
* src/lisp.h (openp):
* lread.c (Flocate_file_internal):
* src/process.c (Fformat_network_address):
* src/sound.c (Fplay_sound_internal):
* src/w32.c (check_windows_init_file):
* src/w32proc.c (sys_spawnve): Update for new arg spec of openp.
* lisp/Makefile.in (BYTE_COMPILE_FLAGS): Set load-prefer-newer to t.
* etc/NEWS: Mention this.
Fixes: debbugs:2061
Le Wang [Wed, 18 Dec 2013 03:02:39 +0000 (11:02 +0800)]
* comint.el (comint-previous-matching-input-from-input): Retain point.
Fixes: debbugs:13404
Chong Yidong [Wed, 18 Dec 2013 02:43:47 +0000 (10:43 +0800)]
* simple.el (append-next-kill): Doc fix (Bug#15995, Bug#16016).
Glenn Morris [Wed, 18 Dec 2013 01:06:16 +0000 (20:06 -0500)]
* src/emacs.c (standard_args) [HAVE_NS]: Remove -disable-font-backend.
Glenn Morris [Wed, 18 Dec 2013 01:03:07 +0000 (20:03 -0500)]
* lisp/mail/emacsbug.el (report-emacs-bug):
Only mention enable-multibyte-characters if non-standard.
Juri Linkov [Tue, 17 Dec 2013 21:39:15 +0000 (23:39 +0200)]
* lisp/arc-mode.el (archive-extract-by-file): Check if directory exists
before deletion to not show irrelevant errors if it doesn't exist.
Juri Linkov [Tue, 17 Dec 2013 21:17:05 +0000 (23:17 +0200)]
* lisp/menu-bar.el (menu-bar-tools-menu): Add `browse-web'.
* lisp/startup.el (fancy-startup-screen, fancy-about-screen):
Set browse-url-browser-function to eww-browse-url locally.
(Bug#14751)
* lisp/net/browse-url.el (browse-url-browser-function): Move `eww'
closer to similar functions.
* lisp/net/eww.el (browse-web): Add alias to `eww'.
(eww-mode-map): Bind "r" to `eww-forward-url' like in Info.
Bind "S-SPC" to `scroll-down-command'. (Bug#16178)
Paul Eggert [Tue, 17 Dec 2013 20:43:43 +0000 (12:43 -0800)]
Merge from gnulib, incorporating:
2013-12-17 gettimeofday: port recent C++ fix to Emacs
2013-12-17 gettimeofday: fix C++ crosscompilation
2013-12-17 qacl: port to Windows better
* lib/file-has-acl.c, lib/time.in.h, m4/gettimeofday.m4, m4/time_h.m4:
Update from gnulib.
* lib/gnulib.mk: Regenerate.
Stefan Monnier [Tue, 17 Dec 2013 18:11:37 +0000 (13:11 -0500)]
* lisp/window.el (window--pixel-to-total): Remove unused `mini' var.
(maximize-window, minimize-window): Remove unused `pixelwise' arg.
(split-window): Remove unused `new' var.
(window--display-buffer): Remove unused `frame' and `delta' vars.
(fit-window-to-buffer): Remove unused vars `frame', `display-height',
and display-width'.
Eli Zaretskii [Tue, 17 Dec 2013 18:00:25 +0000 (20:00 +0200)]
Fix minor problems in Windows emulation of getloadavg.
src/w32.c (getloadavg): Don't index samples[] array with negative
indices. Recover from wall-clock time being set backwards.
Eli Zaretskii [Tue, 17 Dec 2013 17:46:31 +0000 (19:46 +0200)]
Fix some warnings in w32 specific code.
src/w32term.c (w32_initialize): Declare the argument of
set_user_model as const.
src/w32menu.c <MessageBoxW_Proc>: Fix argument declarations.
(w32_menu_show): Constify some arguments passed to MessageBox.
src/w32uniscribe.c (uniscribe_font_driver): Use LISP_INITIALLY_ZERO
to initialize Lisp objects.
src/w32font.c (w32font_driver): Use LISP_INITIALLY_ZERO to
initialize Lisp objects.
src/frame.c (x_set_frame_parameters) [HAVE_X_WINDOWS]: Declare and
use variables used only on X under that condition.
src/fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows
variables not used there.
Martin Rudalics [Tue, 17 Dec 2013 17:29:11 +0000 (18:29 +0100)]
Remove no more needed bindings of split-height-threshold.
* dired.el (dired-mark-pop-up):
* register.el (register-preview): Don't bind
split-height-threshold here since it's now done in
display-buffer-below-selected.
oblique [Tue, 17 Dec 2013 16:03:23 +0000 (00:03 +0800)]
Fix 256 color mapping in rxvt.el
* term/rxvt.el (rxvt-rgb-convert-to-16bit): Standardize with
xterm-rgb-convert-to-16bit.
(rxvt-register-default-colors): Standardize with
xterm-register-default-colors.
Fixes: debbugs:14078
Chong Yidong [Tue, 17 Dec 2013 15:57:38 +0000 (23:57 +0800)]
* killing.texi (Appending Kills): Note that append-next-kill can prepend the kill.
Dima Kogan [Tue, 17 Dec 2013 15:48:26 +0000 (23:48 +0800)]
* simple.el (kill-region): Pass mark first then point, so kill-append works right.
(copy-region-as-kill, kill-ring-save): Likewise.
Fixes: debbugs:12819
Leo Liu [Tue, 17 Dec 2013 15:15:00 +0000 (23:15 +0800)]
* net/rcirc.el (rcirc-add-face):
* eshell/em-prompt.el (eshell-emit-prompt):
* eshell/em-ls.el (eshell-ls-decorated-name): Use font-lock-face.
Fixes: debbugs:16167
Chong Yidong [Tue, 17 Dec 2013 15:09:13 +0000 (23:09 +0800)]
* files.el (break-hardlink-on-save): Doc fix.
Suggested by Xue Fuqiao.
Fixes: debbugs:13801
Dmitry Gutov [Tue, 17 Dec 2013 12:04:23 +0000 (14:04 +0200)]
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if.
Katsumi Yamaoka [Tue, 17 Dec 2013 10:12:07 +0000 (10:12 +0000)]
lisp/gnus/mm-util.el (mm-make-temp-file): Alias to make-temp-file for modern Emacsen
Stefan Monnier [Tue, 17 Dec 2013 02:48:06 +0000 (21:48 -0500)]
* lisp/net/shr.el (shr-insert-document): Remove unused var
`shr-preliminary-table-render'.
(shr-rescale-image): Remove unused arg `force'.
(shr-put-image): Update calls accordingly.
(shr-tag-a): Use `cont' rather than dyn-bound `dom'.
Dmitry Gutov [Tue, 17 Dec 2013 01:31:55 +0000 (03:31 +0200)]
Fix bug#16116
* lisp/emacs-lisp/smie.el (smie-indent--rule): Extract `smie-indent--rule-1'.
(smie-indent-close): Call `smie-indent--rule-1' with METHOD
:close-all, to see which indentation method to use.
(smie-rules-function): Document the method :close-all.
* test/indent/ruby.rb: Update examples according to the change
in `smie-indent-close'.
Lars Magne Ingebrigtsen [Mon, 16 Dec 2013 23:40:17 +0000 (00:40 +0100)]
* net/shr.el (shr-tag-a): Support zero-length <a name="foo"> elements.
Lars Magne Ingebrigtsen [Mon, 16 Dec 2013 23:29:47 +0000 (00:29 +0100)]
eww anchor pointer movement fixup
* net/eww.el (eww-display-html): If we can't find the anchor we're
looking for, then go to point-min.
Paul Eggert [Mon, 16 Dec 2013 22:35:57 +0000 (14:35 -0800)]
Fix problems with CANNOT_DUMP and EMACSLOADPATH.
* leim/Makefile.in (RUN_EMACS):
* lisp/Makefile.in (emacs): Add lisp src to EMACSLOADPATH.
* lisp/loadup.el: Check for src/bootstrap-emacs only when Emacs can dump.
Expand dir too, in case it's relative.
* src/lread.c (init_lread): If CANNOT_DUMP, we can't be dumping.
Juri Linkov [Mon, 16 Dec 2013 21:48:51 +0000 (23:48 +0200)]
* lisp/desktop.el (desktop-auto-save-timeout): Change default to
`auto-save-timeout'. Doc fix.
(desktop-save): Skip the timestamp in desktop-saved-frameset
when checking for auto-save changes.
(desktop-auto-save): Don't call desktop-auto-save-set-timer since
`desktop-auto-save' is called repeatedly by the idle timer.
(desktop-auto-save-set-timer): Replace `run-with-timer' with
`run-with-idle-timer' and a non-nil arg REPEAT. Doc fix.
Fixes: debbugs:15331
Juri Linkov [Mon, 16 Dec 2013 20:32:15 +0000 (22:32 +0200)]
* lisp/isearch.el (isearch-mode-map): Remove [escape] key bindinds.
(isearch-pre-command-hook): Check `this-command' for symbolp.
Fixes: debbugs:16035
Eli Zaretskii [Mon, 16 Dec 2013 19:29:04 +0000 (21:29 +0200)]
Fix compilation errors introduced by changes in extend_face_to_end_of_line.
src/xdisp.c (extend_face_to_end_of_line): Don't reference tool_bar_window
in GTK and NS builds, they don't have this member of struct frame.
Fixes: debbugs:16165
Stefan Monnier [Mon, 16 Dec 2013 19:12:21 +0000 (14:12 -0500)]
* lisp/emacs-lisp/gv.el (gv-ref): Mention lexbind restriction.
Fixes: debbugs:16153
Eli Zaretskii [Mon, 16 Dec 2013 18:18:44 +0000 (20:18 +0200)]
Update Emacs's Windows manifests to support Windows 8.1.
nt/emacs-x64.manifest:
nt/emacs-x86.manifest: Declare that we target Windows 8.1 as well
as earlier versions. This is so GetVersion and GetVersionEx APIs
used for bug reporting and other purposes return accurate version
number on Windows 8.1. See the discussion on MSDN
http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx
for more details.
Eli Zaretskii [Mon, 16 Dec 2013 18:09:36 +0000 (20:09 +0200)]
A better fix for bug #16148 and related issues.
src/xdisp.c (Fmove_point_visually): Fix subtle bugs in the fallback
code, revealed in presence of R2L characters, character
compositions, and display vectors.
src/dispextern.h (struct composition_it): Correct a comment for the
'width' member.
Paul Eggert [Mon, 16 Dec 2013 18:05:53 +0000 (10:05 -0800)]
* font.h (valid_font_driver) [!ENABLE_CHECKING]: Define a dummy.
This prevents a compilation error on C compilers that do not
default functions to return 'int' if not declared. Also, add
INLINE_HEADER_BEGIN and INLINE_HEADER_END to this include file,
since it now uses inline functions.
Eli Zaretskii [Mon, 16 Dec 2013 17:59:50 +0000 (19:59 +0200)]
Fix bug #16165 with memory corruption by extend_face_to_end_of_line.
src/xdisp.c (extend_face_to_end_of_line): Don't fill background of
display margins on mode line, header line, and in the frame's
tool-bar window.
Paul Eggert [Mon, 16 Dec 2013 17:58:25 +0000 (09:58 -0800)]
* INSTALL: Clarify treatment of image libraries.
Andreas Schwab [Mon, 16 Dec 2013 16:18:19 +0000 (17:18 +0100)]
Add more .gitignore
Andreas Schwab [Mon, 16 Dec 2013 16:14:45 +0000 (17:14 +0100)]
* gnutls.c (Fgnutls_boot): Properly check Flistp return value.
Ted Zlatanov [Mon, 16 Dec 2013 15:49:25 +0000 (10:49 -0500)]
Cleanup cfengine3-mode so complete-symbol works again.
* progmodes/cfengine.el (cfengine3--current-word): Remove.
(cfengine3--current-function): Bring in the current-function
functionality from `cfengine3--current-word'.
(cfengine3-completion-function): Bring in the
bounds-of-current-word functionality from
`cfengine3--current-word'.
Ted Zlatanov [Mon, 16 Dec 2013 15:47:09 +0000 (10:47 -0500)]
Fix bug#16161: CHECK_LIST_CONS fails on nil
* src/gnutls.c (Fgnutls_boot): Use `Flistp' instead of
`CHECK_LIST_CONS`.
Martin Rudalics [Mon, 16 Dec 2013 09:58:44 +0000 (10:58 +0100)]
Fix recent w32_enable_frame_resize_hack and display-buffer-below-selected fixes.
* w32term.c (w32_enable_frame_resize_hack): Default to 1.
* window.el (display-buffer-below-selected): Bind
split-height-threshold to 0 as suggested by Juri Linkov.
Leo Liu [Mon, 16 Dec 2013 08:07:10 +0000 (16:07 +0800)]
* progmodes/compile.el (compile-goto-error): Do not push-mark.
Remove NOMSG arg and all uses changed.
Dmitry Antipov [Mon, 16 Dec 2013 07:45:33 +0000 (11:45 +0400)]
* font.c (valid_font_driver) [ENABLE_CHECKING]: New function
intended to find bogus pointers in font objects (Bug#16140).
* font.h (valid_font_driver) [ENABLE_CHECKING]: Add prototype.
* alloc.c (cleanup_vector): Use valid_font_driver in eassert.
(compact_font_cache_entry, compact_font_caches) [!HAVE_NTGUI]:
Disable for MS-Windows due to Bug#15876; apparently this
requires more or less substantial changes in fontset code.
* xfont.c (xfont_close):
* xftfont.c (xftfont_close): Call x_display_info_for_display
to check whether 'Display *' is valid (Bug#16093 and probably
Bug#16069).
Stefan Monnier [Mon, 16 Dec 2013 02:24:08 +0000 (21:24 -0500)]
* lisp/emulation/cua-rect.el (cua-rectangle-mark-mode): New minor mode.
(cua--deactivate-rectangle): Don't deactivate the mark.
(cua-set-rectangle-mark): Don't set mark-active since
cua--activate-rectangle already does it for us.
(cua--rectangle-highlight-for-redisplay): Unhighlight a previous
non-rectangular region.
* lisp/emulation/cua-base.el (cua-repeat-replace-region):
Use with-current-buffer.
* lisp/net/gnutls.el: Use cl-lib.
(gnutls-negotiate): `mapcan' -> cl-mapcan.